﻿using MavlinkDebugger.PacketViewer.Converters;
using MavlinkPacketViewer.PacketViewer;
using SLPropertyGrid;

namespace MavlinkDebugger.PacketViewer
{
	#region Using Directives

    

    #endregion

	#region EnumValueEditor
	/// <summary>
	/// An editor for a Boolean Type
	/// </summary>
	public class EnumValueEditor : ComboBoxEditorBase
	{
		public EnumValueEditor(PropertyGridLabel label, PropertyItem property)
			: base(label, property)
		{
		}

		public override void InitializeCombo()
		{
			this.LoadItems(EnumHelper.GetValues(Property.PropertyType));
		}
	}
	#endregion
}
